<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/15
 * Time: 下午11:15
 */

namespace App\Busi\Modules\Resource;


use App\Busi\Modules\BaseBusi;
use App\Busi\Traits\CaptchaTrait;
use App\Http\Requests\ConsultRo;
use App\Busi\Traits\ConsultTrait;
class ConsultAddBusi extends  BaseBusi
{
    use ConsultTrait,CaptchaTrait;
    public function handle(ConsultRo $ro){
        $name = $ro->name;
        $address = $ro->address;
        $phone = $ro->phone;
        $captcha = $ro->captcha;
        $this->checkCaptcha('captcha:consult:'.$ro->phone, $captcha);
        return $this->consultAdd($name,$address,$phone);
    }
}